/** @type {HTMLCanvasElement} */
console.log(mapInfo);
const c1 = document.getElementById("c1");
const ctx = c1.getContext("2d");
// 设置canvas宽高函数
setCanvasWH(c1, ctx, window.innerWidth, window.innerHeight);
// 存储省市信息的数组
const txts = getAriaAllTexts(mapInfo);
//  存储省市地块坐标集
const polygonVertices = getAriaAllPoints(mapInfo);
// console.log('polygonVertices', polygonVertices)
const pathList = []
// 得到地图区域大概大小
const [xGap, yGap] = getAria(mapInfo);
polygonVertices.forEach((item, i) => {
  // 绘制图形
  const path = render(ctx, item);
  pathList.push(path)
});
// 绘制文字
txts
  .filter((it) => it.center)
  .forEach((item, i) => {
    renderText(ctx, item);
  });
